<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<meta http-equiv="Content-Language" content="zh-CN" />

<title>新闻类别管理</title>
<link href="../Style/Css.css" rel="stylesheet" type="text/css" />
</head>

<body>
	<h3 class="subTitle">新闻类别</h3>

	<ul class="button">
		<li><a href="CategoryAdd.jsp">添加类别</a></li>
	</ul>
	<%
	Typess type = new Typess();
	List<Types> typelist = type.ListTypes();
	request.setAttribute("typelist", typelist);
	%>
	<form id="form2" name="form2" method="post" action="">
		<table width="90%" border="0" align="center" cellpadding="0"
			cellspacing="0" class="table">
			<%
				List<Types> list=request.getAttribute("list");
			int i= 1;
					for(Typess type : typelist){
					
				%>				
			<tr>
				<th width="8%" nowrap="nowrap"><%=i %></th>
				<td align="center"><%=type.name %>/td>
				<td align="center"><a href="CategoryModify.jsp">修改</a></td>
				<td align="center"><a href="#">删除</a></td>
			</tr>	
			i++;			
			<%} 
			%>
			
		</table>
		<table width="90%" border="0" align="center" cellpadding="0"
			cellspacing="0" class="page">
			<tr>
				<td width="50%" align="left">共有<%=i %>条记录，<span
					style="font-family:宋体; font-size:9.0pt; color:black; ">第</span><span
					style="font-family:Tahoma; font-size:9.0pt; color:black; ">
						1/3 </span><span style="font-family:宋体; font-size:9.0pt; color:black; ">页</span></td>
				<td width="50%" align="right"><a href="#">首页</a> <a href="#">上一页</a>
					<a href="#">下一页</a> <a href="#">末页</a> 跳转到 <select name="select2">
						<option>1</option>
						<option>2</option>
						<option>3</option>
						<option>4</option>
						<option>5</option>
						<option>6</option>
				</select></td>
			</tr>
		</table>
	</form>
</body>
</html>
